package cn.ncu.wechat.service;

import cn.ncu.wechat.model.Coupon;
import cn.ncu.wechat.util.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author 
* @description 针对表【coupon(优惠券表)】的数据库操作Service
* @createDate 2025-01-07 16:07:41
*/
public interface CouponService extends IService<Coupon> {

    Result getCouponList(Integer page, Integer pageSize, Integer status);

    Result addOrUpdateCoupon(Map<String, Object> request);

    Result voidCoupon(Long id, Map<String, String> request);

    Result<?> getUsageRecordsByOpenId(Integer id,Integer page,Integer pageSize,Integer status);

    Result<?> couponStatistics(String startDate, String endDate);
}
